package com.hand.wfive.util.oss;

import android.os.Parcel;
import android.os.Parcelable;

public class OssFile implements Parcelable {

    private String fileName;
    private String fileId;
    private String cover;

    public OssFile() {

    }

    protected OssFile(Parcel in) {
        fileName = in.readString();
        fileId = in.readString();
        cover = in.readString();
    }

    public static final Creator<OssFile> CREATOR = new Creator<OssFile>() {
        @Override
        public OssFile createFromParcel(Parcel in) {
            return new OssFile(in);
        }

        @Override
        public OssFile[] newArray(int size) {
            return new OssFile[size];
        }
    };

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(fileName);
        dest.writeString(fileId);
        dest.writeString(cover);
    }
}
